<?php /* Smarty version 2.6.26, created on 2012-05-12 14:55:36
         compiled from C:%5CWampDeveloper%5CWebsites%5Cwww.siyaradiali.com%5Cwebroot%5Cplugins%5Conline%5Cadmin%5Cstatistics_block.tpl */ ?>
<!-- online statistics block -->

<script type="text/javascript">
<?php echo '

function aBlockInit() {
	
	var onlineLoad = false;
	var key = \'online_block\';
	var func = \'xajax_adminStatistics()\';

	if ( $(\'.block div[lang=\'+ key +\']\').is(\':visible\') ) {
		eval(func);
	}
	else {
		$(\'.block div[lang=\'+ key +\']\').prev().find(\'div.collapse\').click(function() {
			if ( !onlineLoad ) {
				eval(func);
				onlineLoad = true;
			}
		});
	}

	$(\'input#apsblock\\\\\\:\'+ key).click(function() {
		if ( !onlineLoad && $(this).attr(\'checked\') && $(\'.block div[lang=\'+ key +\']\').is(\':visible\') ) {
			eval(func);
			onlineLoad = true;
		}
	});
	
}
aBlockInit();
'; ?>

</script>

<!-- online statistics block end -->